package com.poobo.bailianlong.BreakpointResumeDownload;

import java.io.File;

import android.content.Context;


public class Downloader {
 Context mContext;
	public File download(Context mContext, String url, String path, String fileName){
		int result = BreakpointResumeDownloader
				.doBreakpointResumeDownload(
						mContext,
						url,
						path,
						fileName);

		if (result == BreakpointResumeDownloader.OK) {
			return new File(
					path + fileName);
		} else {
			return null;
		}
	}
	
}

